package com.momo.hotel.service.impl;

import com.momo.hotel.dao.mapping.TbFeedbackMapper;
import com.momo.hotel.dao.pojo.TbFeedback;
import com.momo.hotel.service.FeedbackService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FeedbackServiceImpl implements FeedbackService {
    /**
     * 用户反馈
     */
    @Resource
    TbFeedbackMapper tbFeedbackMapper;

    /**
     * 用户反馈
     * @param tbFeedback
     * @return
     */
    @Override
    public Integer addFeedback(TbFeedback tbFeedback) {
        return tbFeedbackMapper.insert(tbFeedback);
    }
}
